package com.shiguiwu.springmybatis.spring.lifecycle.definition;

import com.shiguiwu.springmybatis.spring.lifecycle.instance.MyAutowire;
import lombok.Data;

/**
 * @description: 小猪
 * @author: stone
 * @date: Created by 2021/3/17 14:08
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.lifecycle.definition
 */
@Data
public class Pig {

    private String name;
    private Integer age;

    private String description;

    public Pig() {
    }

    @MyAutowire
    public Pig(String name, Integer age) {
        System.out.println("增强候选注解@MyAutowire ！！！！");
        this.name = name;
        this.age = age;
    }

    public Pig(String name, Integer age, String description) {
        this.name = name;
        this.age = age;
        this.description = description;
    }
}
